package queue.array;


public class ArrayElement<T> {
    private T value;

    public ArrayElement(T value) {
        this.value = value;
    }

    public T getValue() {
        return value;
    }

    @Override
    public boolean equals(Object o) {
        if (o == null || value.getClass() != o.getClass()) return false;
        if (value != null) return value.equals(o);
        return true;
    }
}
